Finished database code for notes

Added notes selection to pill info dialog