fixed adding last to db