Insert different types in database