finished crud and added rules
added database