Notes - DB functions, SQL, layouts, adapter implemented

Notes - db function, SQL, layouts, adapter implemented