A citation generator does the work for you. Try NoodleTools. It is a citation generator that Shoreline pays premium access to use.
Most databases now help with citation. Look for a button or a link that says citation. Databases frequently make mistakes, so you have to check them. Check which edition your instructor wants you to use. MLA has had a recent update in 2016.