Fixed database checkstyle erros and added some javadoc
Finished javadocs